<form action="index.php?c=zy_allocation_log&m={%$act%}&post=1" method=post name=frm enctype="multipart/form-data">	
<table width="98%" name="tab_form" id="tab_form" class="tab_form2" align="center" border="0" cellpadding="0" cellspacing="1">
<thead>
	<th colspan="6" class="acenter">设备调拨{%$act_title%} <!--【合同编号: {%$contract_no%}】--></th>
</thead>
<tbody  class="acenter">
<tr class="txtbold">
	<td width="5%"><!--<input type="checkbox" name="" value="" />--></td>
	<td>产品名称</td>
	<td width="25%">产家编号</td>
	<td width="20%">首次启用时间</td>
	<td width="15%">设备状态</td>
</tr>
{%foreach from=$data_list item=list%}
<tr>
	<td class="tab_bold"><input type="checkbox" name="comp_no[]" value="{%$list.comp_no%}" /></td>
	<td>{%$list.mc_cn_name%}</td>
	<td>{%$list.comp_no%}</td>
	<td>
		<input type=text name="start_time[{%$list.comp_no%}]" id="start_time_{%$list.comp_no%}" size=20 maxlength="12" value='{%$start_time|date_format:"%Y-%m-%d"%}' readonly>
		<script>
			Calendar.setup({
				inputField     :    "start_time_{%$list.comp_no%}",   // id of the input field
				ifFormat       :    "%Y-%m-%d",       // format of the input field
				showsTime      :    false,
				timeFormat     :    "24"
			});
		</script>
	</td>	
	<td>
		<select name="mc_state[{%$list.comp_no%}]">
			<option value="1">完好</option>
			<option value="2">破损</option>
		</select>
	</td>
</tr>
{%/foreach%}

<tr>
	<td colspan=6 align=center>
		<input type=hidden name='allocation_no' id='allocation_no' value='1'><!--调拨数量1-->
		<input type=hidden name='contract_no' id='contract_no' value='{%$contract_no%}'>
		<input type=hidden name='allocation_id' id='allocation_id' value='{%$allocation_id%}'>		
		<input type=hidden name='allocation_log_id' id='allocation_log_id' value='{%$allocation_log_id%}'>
		<input type=submit value="提交" class="btn_form">&nbsp;&nbsp;
		<input type=reset value="重置" class="btn_form">
	</td>
</tr>
</tbody>
</table>
</form>